package com.eipc.model;

import java.util.ArrayList;

/**
 * 签表中数据实体类
 * @author x_liaolijun
 *
 * 2010-9-26 下午05:08:31
 *  
 * TSignTableMatch
 *
 */
public class TSignTable {
	public int count;    //比赛数
	public ArrayList<TSignTableMatch> matches;
		
	public TSignTable(int count, ArrayList<TSignTableMatch> matches) {
		this.count = count;
		this.matches = matches;
	}

	public static class TSignTableMatch{
		public String isGroup;    //是否为双打
		public Player playerA;    //选手A
		public Player playerB;    //选手B
		public TSignTableGroup groupA; //双打选手A组
		public TSignTableGroup groupB; //双打选手B组
		public String statics;    //状态
		public String playerRetail; //单打伤退选手
		public String groupRetail;  //双打伤退选手
		public String winner;      //单打win选手
		public String groupWinner;  //双打win选手
		public String scoreA;        //比分
		public String scoreB;        //比分
		public String venueCnName;         //场地中文名
		public String venueEnName;         //场地英文名
		public String beginTime;             //开始时间
		public TSignTableMatch(String isGroup, Player playerA, Player playerB,
				String statics, String playerRetail, String winner,
				String scoreA, String scoreB, String venueCnName,
				String venueEnName, String beginTime) {
			super();
			this.isGroup = isGroup;
			this.playerA = playerA;
			this.playerB = playerB;
			this.statics = statics;
			this.playerRetail = playerRetail;
			this.winner = winner;
			this.scoreA = scoreA;
			this.scoreB = scoreB;
			this.venueCnName = venueCnName;
			this.venueEnName = venueEnName;
			this.beginTime = beginTime;
		}
		public TSignTableMatch(String isGroup, TSignTableGroup groupA,
				TSignTableGroup groupB, String statics, String groupRetail,
				String groupWinner, String scoreA, String scoreB,
				String venueCnName, String venueEnName, String beginTime) {
			super();
			this.isGroup = isGroup;
			this.groupA = groupA;
			this.groupB = groupB;
			this.statics = statics;
			this.groupRetail = groupRetail;
			this.groupWinner = groupWinner;
			this.scoreA = scoreA;
			this.scoreB = scoreB;
			this.venueCnName = venueCnName;
			this.venueEnName = venueEnName;
			this.beginTime = beginTime;
		}
						
	}
	
	public static class TSignTableGroup{
		public String groupId;
		public Player playerA;
		public Player playerB;
		public String groupSeedNum;
		public String groupWildCard;
		
		public TSignTableGroup(String groupId,Player playerA, Player playerB,
				String groupSeedNum, String groupWildCard) {
			this.groupId = groupId;
			this.playerA = playerA;
			this.playerB = playerB;
			this.groupSeedNum = groupSeedNum;
			this.groupWildCard = groupWildCard;
		}
	}
}
